package caro.client.controller;
import caro.client.gui.ImageProvider;
import caro.client.gui.Messages;
import javax.swing.*;
/**
 * Class Waiting
 * @author Thanh Nhan
 * @Since Aug 28, 2011
 * @Version 1.0
 */
public class Waiting extends JDialog{
    public Waiting(JFrame parent){
        super(parent,Messages.getString("connecting"),true);
        setUndecorated(true);
        setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
        
        setBounds(parent.getX() + parent.getWidth()/2 - 100,parent.getY() + parent.getHeight()/2 - 25, 200, 50);
        JLabel message = new JLabel(ImageProvider.getInstance().getImage("loading.gif"));
        message.setText(Messages.getString("connecting"));
        add(message);
    }
}
